<html> 
    
    <script>
        value = localStorage["key"];
        document.write(value);
        alert(value);</script>
        
</html>